package com.aoip.telemetry.telemetry.entity.waterresource;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 水资源规约中，监测站与监测点解析顺序配置表
 *
 * @author chenbai
 * @version 1.0
 * @date 2021/7/12 3:14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Builder
@TableName("ws_rtu_analysis_order_config")
@ApiModel(description = "水资源规约中，监测站与监测点解析顺序配置表")
public class WsRtuAnalysisOrderConfigEntity implements Serializable {

    private static final long serialVersionUID = -157866384806868369L;

    @TableField("rtu_message_address")
    @ApiModelProperty(value = "报文中测站地址，地址编码为16进制数")
    private String rtuMessageAddress;

    @TableField("control_domain_c")
    @ApiModelProperty(value = "控制域C，用于区分不同类型数据")
    private String controlDomainC;

    @TableField("rtu_address")
    @ApiModelProperty(value = "实际测站地址，地址编码为10进制")
    private String rtuAddress;

    @TableField("mp_code")
    @ApiModelProperty(value = "监测站下监测点编码")
    private String mpCode;

    @TableField("mp_order")
    @ApiModelProperty(value = "同一控制域下，监测点顺序")
    private Integer mpOrder;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改时间")
    private LocalDateTime modifyTime;

    @TableField(value = "del_flag", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("删除标识")
    private String delFlag;

    @TableField(value = "bz")
    @ApiModelProperty("备注信息")
    private String bz;
}
